﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Codebehind="NoticeAdd.aspx.cs" Inherits="Ankin.EHBH.Web.Modules.SystemManage.NoticeAdd"
    Title="医用耗材管理系统" %>

<%@ Register Src="../../upload/FileUploadCtr.ascx" TagName="FileUploadCtr" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">

    <script src="../../upload/fileup.js" type="text/javascript"></script>

    <script type="text/jscript">
    var path="../../upload/"//删除按钮路径
    </script>

    <script language="javascript" type="text/javascript" src="../../Public/My97DatePicker/WdatePicker.js"></script>

    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td class="bor bor-bg">
                添加公告</td>
        </tr>
        <tr>
            <td class="bor">
                <table cellspacing="0" cellpadding="0" width="100%" border="0" class="t1">
                    <tr>
                        <td align="right" width="100">
                            标题 ：</td>
                        <td align="left">
                            <asp:TextBox ID="txtTOPIC" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTOPIC"
                                ErrorMessage="标题不为空"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="height: 22px" width="100">
                            公告类别：
                        </td>
                        <td align="left" style="height: 22px">
                            <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                                <asp:ListItem Value="1">网站公告</asp:ListItem>
                                <asp:ListItem Value="2">注意事项</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <asp:Panel ID="p1" runat="server">
                        <tr>
                            <td align="right">
                                到期时间 ：</td>
                            <td>
                                <input id="txtEXPIRE" type="text" onclick="WdatePicker()" runat="server" style="width: 95px" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEXPIRE"
                                    ErrorMessage="到期时间不为空"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEXPIRE"
                                    ErrorMessage="时间格式不对" ValidationExpression="(\d{4}\-\d{1,2}-\d{1,2})"></asp:RegularExpressionValidator></td>
                        </tr>
                    </asp:Panel>
                    <tr>
                        <td align="right">
                            发布者 ：</td>
                        <td>
                            <asp:TextBox ID="txtSIGNATURE" runat="server" Width="200px" ReadOnly="true"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtSIGNATURE"
                                ErrorMessage="发布者不为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td align="right" id="TD1" runat="server">
                            内容 ：</td>
                        <td>
                            <asp:TextBox ID="txtCONTENT" runat="server" Width="99%" Height="279px" TextMode="MultiLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCONTENT"
                                ErrorMessage="内容不为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td runat="server" align="right" valign="top">
                            附件上传 :</td>
                        <td>
                            <div>
                                <uc1:FileUploadCtr ID="FilePostCtr1" runat="server" />
                                <asp:HyperLink ID="hlUpload" runat="server" Visible="false"></asp:HyperLink></div>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" colspan="2">
                            <div align="center">
                                <asp:Button ID="btnAdd" runat="server" Text="· 提交 ·" OnClick="btnAdd_Click" CssClass="longbutton"
                                    Width="90" Height="25" Style="cursor: pointer;"></asp:Button>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
